/*
 * @Author: xiehangyun 
 * @Date: 2025-05-16 10:34:03 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-07-02 09:38:46
 */

import Api from "src/api/Api";

// 我的钱包的接口
class MyWalletApi extends Api {

    constructor() {
        super()
    }

    //获取当前登陆账户余额
    async getMoney() {
        return await this._get("/myWallet/getMoney");
    }

    //获取当前登陆账户提现记录
    async getMoneyDetail(data: {
        pageNum?: number;
        pageSize?: number;
        month?: number;
        year?: number;
    }) {
        return await this._get("/myWallet/listMoneyDetail", { ...data, day: "" });
    }







}

const myWalletApi = new MyWalletApi();

export default myWalletApi;
